Fix bug #18528 with crashes at startup during frameset restoration.
authorEli Zaretskii <eliz@gnu.org>
Wed, 24 Sep 2014 07:31:11 +0000 (10:31 +0300)
committerEli Zaretskii <eliz@gnu.org>
Wed, 24 Sep 2014 07:31:11 +0000 (10:31 +0300)
commit2708a1d5f089b5a2e6b31a95d1acece213509b9f
tree953c987fefc1e10d21a17bfee09845ff5d43c6c0
parent00b9af7e3bfced98acf94d599767aaec763927f0
Fix bug #18528 with crashes at startup during frameset restoration.

 src/w32term.c (w32_read_socket): Don't use frame dimensions for
 resizing if GetClientRect returned an empty (0, 0, 0, 0)
 rectangle.  Check the return value of GetClientRect, and don't use
 the results if it didn't succeed.
 src/dispnew.c (change_frame_size_1): Recompute the frame dimensions
 in columns and lines after correcting the pixel dimensions in
 check_frame_size.
 (adjust_decode_mode_spec_buffer): Add assertion to avoid passing
 negative values to xrealloc.
src/ChangeLog
src/dispnew.c
src/w32term.c